home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 5
/
Gold Medal Software - Volume 5 (Gold Medal) (1995).iso
/
utils1
/
cpu_id.arj
/
CPUID.SCR
< prev
next >
Wrap
Text File
|
1994-09-20
|
3KB
|
139 lines
A 100
MOV DX,00FE
MOV SP,DX
JMP 0213
DW 0000
DB "This system has a$"
DB " and an 8087 Math CoProcessor$"
DB " and a 287tm Math CoProcessor$"
DB " and a 387tm Math CoProcessor$"
DB "n 8086/8088 Microprocessor$"
DB "n 80286 Microprocessor$"
DB " 386tm Microprocessor$"
DB " 486-DXtm Microprocessor/487tm Math CoProcessor$"
DB " 486-SXtm Microprocessor$"
DB ".",0D,0A,"$"
DW 0000
DW 0000
DW 0000
DW 0000
MOV DX,010A
MOV AH,09
INT 21
PUSHF
POP BX
MOV AX,0FFF
AND AX,BX
PUSH AX
POPF
PUSHF
POP AX
AND AX,F000
CMP AX,F000
MOV DX,0176
MOV WORD PTR [020B],0001
JE 0290
OR BX,F000
PUSH BX
POPF
PUSHF
POP AX
AND AX,F000
MOV DX,0191
MOV WORD PTR [020B],0000
MOV WORD PTR [020D],0001
JZ 0290
MOV BX,SP
AND SP,FFFC
DB 66
PUSHF
DB 66
POP AX
DB 66
MOV CX,AX
DB 66
XOR AX,0000
DW 4
DB 66
PUSH AX
DB 66
POPF
DB 66
PUSHF
DB 66
POP AX
DB 66
XOR AX,CX
MOV DX,01A8
MOV WORD PTR [020D],0000
MOV WORD PTR [020F],0001
JE 0290
MOV DX,01EE
MOV WORD PTR [020F],0000
MOV WORD PTR [0211],0001
FINIT
MOV WORD PTR [0108],5A5A
FSTSW [0108]
MOV AX,[0108]
CMP AL,00
JNE 02FD
FSTCW [0108]
MOV AX,[0108]
AND AX,103F
CMP AX,003F
JNE 02FD
CMP WORD PTR [0211],+01
JE 02BB
JMP 02C0
MOV DX,01BE
JMP 02FD
CMP WORD PTR [020F],+01
JNE 0303
MOV AH,09
INT 21
WAIT FLD1
WAIT FLDZ
WAIT FDIV
WAIT FLD ST(0)
WAIT FCHS
WAIT FCOMPP
WAIT FSTSW [0108]
MOV AX,[0108]
MOV DX,013A
SAHF
JZ 02EE
MOV DX,0158
WAIT FINIT
MOV AH,09
INT 21
DB 66
PUSH CX
DB 66
POPF
MOV SP,BX
JMP 0353
MOV AH,09
INT 21
JMP 0353
MOV AH,09
INT 21
CMP WORD PTR [020B],+01
MOV DX,011C
JE 0314
MOV DX,013A
MOV AH,09
INT 21
JMP 0353
DB "* Assembled by DANIEL SEDORY (9-20-94) using only DEBUG *"
MOV DX,0207
MOV AH,09
INT 21
MOV AX,4C00
INT 21
RCX
25F
N CPUID.COM
W
Q